package com.aaa.operations.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.multipart.MultipartResolver;
import org.springframework.web.multipart.commons.CommonsMultipartResolver;

/**
 * @author ：陈路遥
 * @date ：Created in 2020/8/7 16:37
 * @description：
 * @modified By：
 * @version:
 */
@Configuration
public class FileConfig {
    @Bean(name = "multipartResolver")
 public MultipartResolver getCommonsMultipartResolver() {
        CommonsMultipartResolver commonsMultipartResolver = new
                CommonsMultipartResolver();
        return commonsMultipartResolver; }
}
